From 04e727709d562d7a86a115723d0356592ab06333 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 29 Jun 2015 14:16:49 -0700 Subject: [PATCH] window: Don't send startup notifications for offscreen / popup windows The WM isn't aware of O-R (popup) or offscreen windows. If somebody maps an offscreen or a popup GTK+ window before the main window, we'll complete the sequence before a "real" window is mapped. Make sure to ignore these for startup notifies. --- gtk/gtkwindow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index ce24667c5f..add6b79dfd 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -6129,7 +6129,9 @@ gtk_window_map (GtkWidget *widget) gdk_window_show (gdk_window); - if (!disable_startup_notification) + if (!disable_startup_notification && + !GTK_IS_OFFSCREEN_WINDOW (window) && + priv->type != GTK_WINDOW_POPUP) { /* Do we have a custom startup-notification id? */ if (priv->startup_id != NULL) -- 2.30.2